/**
 * Variable class represent the variable inputed by the user during the expression 
 * include character from user and integer class that is available for updating value from user input
 * 
 * @author ColorLee
 *
 */
public class Variable {
	
	private String s = null;
	private Integer i;
	
	/**
	 * Constructor for initialize the variable character letter
	 * @param c Variable character letter
	 */
	public Variable(String s){
		setCharacter(s);
	}
	
	/**
	 * Constructor for initialize the variable value
	 * @param i Variable value
	 */
	public Variable(Integer i){
		setInteger(i);
	}
	
	/**
	 * Constructor for initialize the variable character letter and variable value
	 * @param c Variable character letter
	 * @param i Variable value
	 */
	public Variable(String s, Integer i){
		setCharacter(s);
		setInteger(i);
	}
	
	/**
	 * Get the variable character letter
	 * @return Variable character letter
	 */
	public String getCharacter(){ return s.toString(); }
	
	/**
	 * Set the variable character letter
	 * @param c Variable character letter
	 */
	public void setCharacter(String s){ this.s = s; }
	
	/**
	 * Get the variable character value
	 * @return Variable character value
	 */
	public Integer getInteger(){ return i; }
	
	/**
	 * Set the variable character value
	 * @param c Variable character value
	 */
	public void setInteger(Integer i){ this.i = i; }

}
